
const baseUrl = "http://localhost:" //dev

//若有单独设置api_[module]地址，则直接使用，否则使用共用的baseUrl
const setBaseurl = (moduleName) => {
    if (moduleName.startsWith("http")) {
        return moduleName
    } else {
        return baseUrl + moduleName + "/"
    }
}
//const api_system = setBaseurl("5133/api")
let api_system = location.origin + "/api/"

if(location.origin.startsWith("http://localhost")){
    api_system = setBaseurl("5133/api")
}
export default {
    api_system
}

// npm run dev
// npm run build:prod